package exhibition.app.nexd.cn.model;


import com.litesuits.orm.db.annotation.Column;
import com.litesuits.orm.db.annotation.PrimaryKey;
import com.litesuits.orm.db.annotation.Table;
import com.litesuits.orm.db.enums.AssignType;

/**
 * Created by xun on 2016/4/18.
 */


@Table("orderForm")
public class OrderForm {
    @PrimaryKey(AssignType.AUTO_INCREMENT)
    @Column("_id")
    private int _id;
    @Column("orderFormId")
    private String orderFormId;
    @Column("userId")
    private int userId;
    @Column("hireId")
    private int hireId;
    @Column("title")
    private String title;
    @Column("price")
    private double price;
    @Column("days")
    private int days;
    @Column("num")
    private int num;
    @Column("hireDeposit")
    private double hireDeposit;

    public String getOrderFormId() {
        return orderFormId;
    }

    public void setOrderFormId(String orderFormId) {
        this.orderFormId = orderFormId;
    }

    public int getUserId() {
        return userId;
    }

    public void setUserId(int userId) {
        this.userId = userId;
    }


    public void setHireId(int hireId) {
        this.hireId = hireId;
    }

    public int getHireId() {
        return hireId;
    }

    public OrderForm() {
    }

    public double getHireDeposit() {
        return hireDeposit;
    }

    public void setHireDeposit(double hireDeposit) {
        this.hireDeposit = hireDeposit;
    }

    public OrderForm(String title, double price, int days, int num) {
        this.title = title;
        this.price = price;
        this.days = days;
        this.num = num;
    }


    @Override
    public String toString() {
        return "OrderForm{" +
                "_id=" + _id +
                ", userId=" + userId +
                ", hireId=" + hireId +
                ", title='" + title + '\'' +
                ", price=" + price +
                ", days=" + days +
                ", num=" + num +
                ", hireDeposit=" + hireDeposit +
                '}';
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setDays(int days) {
        this.days = days;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getTitle() {
        return title;
    }

    public double getPrice() {
        return price;
    }

    public int getDays() {
        return days;
    }

    public int getNum() {
        return num;
    }
}
